#include<stdio.h>
void pri(int a)
{
	if (a < 1)
	{
		return;
	}
	else
		pri(a = a / 10);

	printf("%d ", a);
}
int main()
{

	int a = 54321;

	pri(a);
	return 0;
}